From 5a516f2a22114986d4c122747ac927841c49f2d5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 8 Mar 2020 13:37:13 -0700 Subject: [PATCH] wayland: Stop using surface types --- gdk/wayland/gdkdevice-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index f31ff99045..f063563aae 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -749,7 +749,7 @@ gdk_wayland_device_grab (GdkDevice *device, GdkWaylandSeat *wayland_seat = GDK_WAYLAND_SEAT (gdk_device_get_seat (device)); GdkWaylandPointerData *pointer = GDK_WAYLAND_DEVICE (device)->pointer; - if (gdk_surface_get_surface_type (surface) == GDK_SURFACE_TEMP && + if (GDK_IS_DRAG_SURFACE (surface) && gdk_surface_get_mapped (surface)) { g_warning ("Surface %p is already mapped at the time of grabbing. " -- 2.30.2